package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.userControl.HLAchievementItem;

public class HLClassAchievementItem extends HLLibClass {
    public HLClassAchievementItem(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLAchievementItem();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLAchievementItem) self).Load();
            break;
        }
        }
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                HLAchievementItem.GetAchievements();
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAchievementItem.GetAchievements());
            }
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                HLAchievementItem.GetAchievement(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, HLAchievementItem.GetAchievement(args.GetInt(0)));
            }
            break;
        }
        }
    }
}
